<template>
	<view v-if="isbool(data)">
		<view class="fs12 fwb">{{data.title}}</view>
		<view class="padtb2 ">
			<view class="flex-r flex-start lh2 bdbdo" v-for="item in data.choices">
				<view class="flex1">{{item[0]}}</view>
				<view>{{item[1]}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			iri:''
		},
		data(){
			return{
				data:{}
			}
		},
		methods:{
			getById(){
			}
		},
		mounted() {
				this.log(this.iri)
			if(this.isbool(this.iri)){
				this.$api.getRes(this.iri,res=>{
					this.data = res
				})
				return
			}
		}
	}
</script>

<style>
</style>
